package com.shen.start;

import java.util.Scanner;
//计算加减乘除余
public class Add {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int a = scanner.nextInt();
        int b = scanner.nextInt();
        scanner.close();

        //write your code here......
        if (a>b){
            System.out.println((a+b)+"\t"+(a-b)+"\t"+(a*b)+"\t"+(a/b)+"\t"+(a%b));
        }else{
            System.out.println((a+b)+"\t"+(b-a)+"\t"+(a*b)+"\t"+(b/a)+"\t"+(b%a));
        }

    }
}
